package cn.gok.service.impl;
import cn.gok.entity.Service;
import cn.gok.mapper.ServiceMapper;
import cn.gok.service.ServiceService;
import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.transaction.annotation.Transactional;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@org.springframework.stereotype.Service
@Transactional
public class ServiceServiceImpl implements ServiceService {
    @Autowired(required = false)
    private ServiceMapper serviceMapper;

    @Override
    public List<Service> sel(Map<String, Object> map) {
        return null;
    }

    @Override
    public List<Service> show(Map<String, Object> map) {

        return serviceMapper.show(map);
    }

    @Override
    public int add(Map<String, Object> map) {

        return serviceMapper.add(map);
    }

    @Override
    public int updata(Map<String, Object> map) {
        return serviceMapper.re(map);
    }

    @Override
    public int del(Map<String, Object> map) {
        return serviceMapper.del(map);
    }

    @Override
    public List<Service> details(Map<String, Object> map) {
        return serviceMapper.details(map);
    }
}
